//
//  GW1830.h
//  X2a
//
//  Created by Jack.MT on 15/9/15.
//  Copyright (c) 2015年 Jack.MT. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <VISA/VISA.h>

@interface GWPower : NSObject
{
    char instrDescriptor[VI_FIND_BUFLEN];
    ViUInt32 numInstrs;
    ViFindList findList;
    ViSession defaultRM, instr;
    ViStatus status;
    ViUInt32 retCount;
    ViUInt32 writeCount;
}

@property(readonly) BOOL opened;

-(BOOL) OpenDevice;
-(void) CloseDevice;
-(BOOL) Find;
-(BOOL) sendCommand:(NSString*) command;
-(NSString*) readDataWithCountOfByte:(int)readDataCount;
-(NSString *) readDataByCommand:(NSString *) command;
@end
